﻿namespace AntdUI_HamburgerMenuTabs.Common
{
    public class Svg
    {
        /// <summary>
        /// 获取方形颜色块
        /// </summary>
        /// <param name="color"></param>
        /// <returns></returns>
        public static string GetColorBlock(Color color)
        {
            return $"<svg t=\"1753693853269\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"200\" height=\"200\"><path d=\"M830.464 63.488q26.624 0 50.176 12.288t41.472 31.232 28.672 43.008 10.752 46.592l0 635.904q0 23.552-11.264 46.592t-30.208 41.472-43.008 30.208-48.64 11.776l-641.024 0q-22.528 0-44.544-10.752t-39.424-28.16-28.16-40.96-10.752-50.176l0-633.856q0-25.6 10.752-50.176t29.696-43.52 43.52-30.208 52.224-11.264l629.76 0z\" fill=\"#{AntdUI.Style.ToHex(color)}\"></path></svg>";
        }

        /// <summary>
        /// 获取圆形颜色块
        /// </summary>
        /// <param name="color"></param>
        /// <returns></returns>
        public static string GetColorCircle(Color color)
        {
            return $"<svg t=\"1753693711489\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"200\" height=\"200\"><path d=\"M512 512m-512 0a23 23 0 1 0 1024 0 23 23 0 1 0-1024 0Z\" fill=\"#{AntdUI.Style.ToHex(color)}\"></path></svg>";
        }

        public class General
        {
            /// <summary>
            /// 日志
            /// 来源：https://www.iconfont.cn/collections/detail?spm=a313x.search_index.0.da5a778a4.71da3a81BNB8FY&cid=23603
            /// </summary>
            public const string Log = @"<svg t=""1753941798731"" class=""icon"" viewBox=""0 0 1820 1024"" version=""1.1"" xmlns=""http://www.w3.org/2000/svg"" p-id=""14675"" width=""200"" height=""200""><path d=""M848.782222 184.32h150.186667c15.075556 0 27.306667-12.231111 27.306667-27.306667V102.4c0-15.075556-12.231111-27.306667-27.306667-27.306667H848.782222c-15.075556 0-27.306667 12.231111-27.306666 27.306667v54.613333c0 15.075556 12.231111 27.306667 27.306666 27.306667z"" p-id=""14676""></path><path d=""M1251.555556 136.533333h-197.973334v34.133334c0 22.660741-18.299259 40.96-40.96 40.96H835.128889c-22.660741 0-40.96-18.299259-40.96-40.96v-34.133334H568.888889c-22.660741 0-40.96 18.299259-40.96 40.96v730.453334c0 22.660741 18.299259 40.96 40.96 40.96h682.666667c22.660741 0 40.96-18.299259 40.96-40.96V177.493333c0-22.660741-18.299259-40.96-40.96-40.96z m-204.8 634.88H664.462222c-15.075556 0-27.306667-12.231111-27.306666-27.306666s12.231111-27.306667 27.306666-27.306667H1046.755556c15.075556 0 27.306667 12.231111 27.306666 27.306667s-12.231111 27.306667-27.306666 27.306666zM1155.982222 580.266667H664.462222c-15.075556 0-27.306667-12.231111-27.306666-27.306667s12.231111-27.306667 27.306666-27.306667h491.52c15.075556 0 27.306667 12.231111 27.306667 27.306667s-12.231111 27.306667-27.306667 27.306667z m0-191.146667H664.462222c-15.075556 0-27.306667-12.231111-27.306666-27.306667s12.231111-27.306667 27.306666-27.306666h491.52c15.075556 0 27.306667 12.231111 27.306667 27.306666s-12.231111 27.306667-27.306667 27.306667z"" p-id=""14677""></path></svg>";
        }
    }
}